package cn.clq.ssmshiro.controller;

import cn.clq.ssmshiro.service.ItemService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
public class ItemsController {

    @Resource
    private ItemService itemService;

    @RequestMapping(value = "findItems",method = RequestMethod.GET)
    @ResponseBody
    public Object findItems(){
        return itemService.findAllItems();
    }
}
